<style>
    .layui-form-switch {
        position: relative;
        height: 22px;
        line-height: 22px;
        min-width: 35px;
        padding: 0 5px;
        margin-top: 8px;
        border: 1px solid #d2d2d2;
        border-radius: 20px;
        cursor: pointer;
        background-color: #fff;
        -webkit-transition: .1s linear;
        transition: .1s linear;
        width: 60px;

    }
    .layui-form-onswitch {
        border-color: #5FB878;
        background-color: #5FB878;
        width: 50px;
    }
    .layui-form-onswitch i {
        left: 100%;
        margin-left: -21px;
        background-color: #fff;
    }
    .default,.blue{
        box-shadow: none;
        border: 1px solid;
        text-decoration: none;
        color: #fff;
        display: inline-block;
        padding: 6px 12px;
        margin-bottom: 0;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.42857143;
        text-align: center;
        white-space: nowrap;
        vertical-align: middle;
        -ms-touch-action: manipulation;
        touch-action: manipulation;
        cursor: pointer;
    }
    .blue{
        background: #3c8dbc;
        color: #fff;
    }
</style>
<form action="{:url()}" method="post" class="form_single">
    <div class="box">
      <div class="box-body">
        <div class="row">
            <div class="col-md-12">
                <div class="form-group">
                    <label>流通市值</label>
                    <span></span>
                    <input class="form-control" name="market_equity" value="{$info['market_equity']}" placeholder="请输入流通市值" type="text">
                </div>
            </div>
            <div class="col-md-12">
                <div class="form-group">
                    <label>发行价格</label>
                    <span></span>
                    <input class="form-control" name="issuance_price" value="{$info['issuance_price']}" placeholder="请输入发行价格" type="text">
                </div>
            </div>
            <div class="col-md-12">
                <div class="form-group">
                    <label>发行时间</label>
                    <span></span>
                    <input class="form-control" name="time" value="{$info['time']}" placeholder="请输入发行时间" type="text">
                </div>
            </div>
            <div class="col-md-12">
                <div class="form-group">
                    <label>最大供应量</label>
                    <span></span>
                    <input class="form-control" name="maximum_supply" value="{$info['maximum_supply']}" placeholder="请输入最大供应量" type="text">
                </div>
            </div>
            <div class="col-md-12">
                <div class="form-group">
                    <label>总供应量</label>
                    <span></span>
                    <input class="form-control" name="total_supply" value="{$info['total_supply']}" placeholder="请输入总供应量" type="text">
                </div>
            </div>

            <div class="col-md-12">
                <div class="form-group">
                    <label>上架交易平台</label>
                    <span></span>
                    <input class="form-control" name="trading_platform" value="{$info['trading_platform']}" placeholder="请输入上架交易平台" type="text">
                </div>
            </div>
            <div class="col-md-12">
                <div class="form-group">
                    <label>流通总量 </label>
                    <span></span>
                    <input class="form-control" name="total_circulation" value="{$info['total_circulation']}" placeholder="请输入流通总量 " type="text">
                </div>
            </div>
            <div class="col-md-12">
                <div class="form-group">
                    <label>流通率</label>
                    <span></span>
                    <input class="form-control" name="circulation_rate" value="{$info['circulation_rate']}" placeholder="请输入流通率" type="text">
                </div>
            </div>
            <div class="col-md-12">
                <div class="form-group">
                    <label>历史最高价 </label>
                    <span></span>
                    <input class="form-control" name="history_high_price" value="{$info['history_high_price']}" placeholder="请输入历史最高价 " type="text">
                </div>
            </div>
            <div class="col-md-12">
                <div class="form-group">
                    <label>历史最高价时间 </label>
                    <span></span>
                    <input class="form-control" name="history_high_time" value="{$info['history_high_time']}" placeholder="请输入历史最高价时间 " type="text">
                </div>
            </div>
            <div class="col-md-12">
                <div class="form-group">
                    <label>核心算法</label>
                    <span></span>
                    <input class="form-control" name="core_algorithm" value="{$info['core_algorithm']}" placeholder="请输入核心算法" type="text">
                </div>
            </div>
            <div class="col-md-12">
                <div class="form-group">
                    <label>共识机制</label>
                    <span></span>
                    <input class="form-control" name="consensus_mechanism" value="{$info['consensus_mechanism']}" placeholder="请输入共识机制" type="text">
                </div>
            </div>
            <div class="col-md-12">
                <div class="form-group">
                    <label>众筹时间</label>
                    <span></span>
                    <input class="form-control" name="crowd_time" value="{$info['crowd_time']}" placeholder="请输入众筹时间" type="text">
                </div>
            </div>
            <div class="col-md-12">
                <div class="form-group">
                    <label>众筹价格</label>
                    <span></span>
                    <input class="form-control" name="crowd_price" value="{$info['crowd_price']}" placeholder="请输入众筹价格" type="text">
                </div>
            </div>
            <div class="col-md-12">
                <div class="form-group">
                    <label>众筹总额</label>
                    <span></span>
                    <input class="form-control" name="crowd_total" value="{$info['crowd_total']}" placeholder="请输入众筹总额" type="text">
                </div>
            </div>

        <input type="hidden" name="symbol" value="{$info['symbol']}"/>

          </div>

          <div class="row">


              <div class="col-md-12">
                  <div class="form-group">
                      <label>简况</label>
                      <textarea class="form-control textarea_editor" name="content" placeholder="请输入简况">{$info['content']|default=''}</textarea>
                      {:widget('editor/index', array('name'=> 'content','value'=> ''))}
                  </div>
              </div>

          </div>

      </div>


        
      <div class="box-footer">

        
        {include file="layout/edit_btn_group"/}
        
      </div>
        
      </div>
      </div>
</form>

<script>
    $("body").on('click','.default',function () {

        $(this).removeClass('default');
        $(this).addClass('blue');
        var len= $('.blue').length;
        var str=',';
        for (var i=0; i<len;i++){
            str+=$('.blue').eq(i).attr('data-id')+',';
        }
        $("[name='tags']").val(str);

    })

    $("body").on('click','.blue',function () {
        $(this).removeClass('blue');
        $(this).addClass('default');
        var len= $('.blue').length;
        var str=',';
        for (var i=0; i<len;i++){
            str+=$('.blue').eq(i).attr('data-id')+',';
        }
        $("[name='tags']").val(str);

    })

    $('.onkey').click(function () {
        $(this).hide();
        $(this).next().show();
        $("input[name='"+$(this).attr('data-code')+"']").val(1);
    })
    $('.offkey').click(function () {
        $(this).hide();
        $(this).prev().show();
        $("input[name='"+$(this).attr('data-code')+"']").val(2);

    })




</script>